/*
 * Range.h
 *
 *  Created on: Apr 28, 2009
 *      Author: wrice
 */

#ifndef RANGE_H_
#define RANGE_H_
#include "DOMRange.h"
namespace DOMRange {

class Range {
public:
//	 readonly attribute Node             startContainer;
//	                                        // raises(DOMException) on retrieval
//
//	  readonly attribute long             startOffset;
//	                                        // raises(DOMException) on retrieval
//
//	  readonly attribute Node             endContainer;
//	                                        // raises(DOMException) on retrieval
//
//	  readonly attribute long             endOffset;
//	                                        // raises(DOMException) on retrieval
//
//	  readonly attribute boolean          collapsed;
//	                                        // raises(DOMException) on retrieval
//
//	  readonly attribute Node             commonAncestorContainer;
//	                                        // raises(DOMException) on retrieval
//
//	  void               setStart(in Node refNode,
//	                              in long offset)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               setEnd(in Node refNode,
//	                            in long offset)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               setStartBefore(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               setStartAfter(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               setEndBefore(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               setEndAfter(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               collapse(in boolean toStart)
//	                                        raises(DOMException);
//	  void               selectNode(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//	  void               selectNodeContents(in Node refNode)
//	                                        raises(RangeException,
//	                                               DOMException);
//
//	  // CompareHow
//	  const unsigned short      START_TO_START                 = 0;
//	  const unsigned short      START_TO_END                   = 1;
//	  const unsigned short      END_TO_END                     = 2;
//	  const unsigned short      END_TO_START                   = 3;
//
//	  short              compareBoundaryPoints(in unsigned short how,
//	                                           in Range sourceRange)
//	                                        raises(DOMException);
//	  void               deleteContents()
//	                                        raises(DOMException);
//	  DocumentFragment   extractContents()
//	                                        raises(DOMException);
//	  DocumentFragment   cloneContents()
//	                                        raises(DOMException);
//	  void               insertNode(in Node newNode)
//	                                        raises(DOMException,
//	                                               RangeException);
//	  void               surroundContents(in Node newParent)
//	                                        raises(DOMException,
//	                                               RangeException);
//	  Range              cloneRange()
//	                                        raises(DOMException);
//	  DOMString          toString()
//	                                        raises(DOMException);
//	  void               detach()
//	                                        raises(DOMException);
};

}

#endif /* RANGE_H_ */
